﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsTaskDotCloudBatch")]
    public class MsTaskDotCloudBatch
    {
        /// <summary>
        /// 批次Id
        /// </summary>
        [Key]
        public Guid BatchId { get; set; }

        /// <summary>
        /// 任务Id
        /// </summary>
        [Column("TaskId")]
        public Guid TaskId { get; set; }

        /// <summary>
        /// 站点序号
        /// </summary>
        [Column("PointIndexs")]
        public string[] PointIndexs { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateDate")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Column("UpdateDate")]
        public DateTime UpdateDate { get; set; }

        /// <summary>
        /// 状态：1待计算，2计算中，3已完成（生成报告成功），4生成报告失败
        /// </summary>
        [Column("Status")]
        public int Status { get; set; }

        /// <summary>
        /// 已执行次数
        /// </summary>
        [Column("CurrTimes")]
        public int CurrTimes { get; set; }

        /// <summary>
        /// 最大可执行次数
        /// </summary>
        [Column("MaxTimes")]
        public int MaxTimes { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted { get; set; }
    }
}
